#ifndef MAINVIEW_H
#define MAINVIEW_H

#include <QObject>
#include <QGraphicsView>
#include <QGraphicsScene>
#include <QGraphicsItem>
#include "icon.h"

class MainView : public QGraphicsView
{
public:
    MainView(QGraphicsView *parent=0);
    ~MainView() {};

private:
    QGraphicsView *view;
    QGraphicsScene *scene;
    QImage *image;
    QString *img_path;
    Icon *lampada_1,*lampada_2,*lampada_3;

signals:
    //void ctrlPressed();
    //void ctrlReleased();
    void sceneClicked();

public slots:

protected:
    void resizeEvent(QResizeEvent *event);
    void keyPressEvent(QKeyEvent *event);
    void drawBackground(QPainter *painter, const QRectF &rect);
};

#endif // MAINVIEW_H
